#ifndef LOG_MESSAGE_CODES_H
#define LOG_MESSAGE_CODES_H

namespace smsrouter {

namespace logmsgcodes {

static const int UD_QT_LOG_MSG            = 0x00001001;
static const int UD_CONFIG_ACCESS_ERR     = 0x00001002;
static const int UD_CONFIG_PARSE_ERR      = 0x00001003;
static const int UD_CONFIG_READ_ERR       = 0x00001004;

static const int K_STARTED_STATE          = 0x00002000;
static const int K_STOPED_STATE           = 0x00002001;
static const int K_STOPING_STATE          = 0x00002002;
static const int K_STARTING_STATE         = 0x00002003;
static const int K_ERROR_STATE            = 0x00002004;
static const int K_INIT_ERR               = 0x00002005;
static const int K_SRC_SUBMIT_ROUTED      = 0x00002006;
static const int K_TRANSFORM_SRC_SUBMIT   = 0x00002007;
static const int K_FILTER_SRC_SUBMIT      = 0x00002008;
static const int K_FILTER_DEST_SUBMIT     = 0x00002009;
static const int K_TRANSFORM_SRC_DELIVER  = 0x0000200A;
static const int K_BILLING_CL_OPEN        = 0x0000200B;
static const int K_BILLING_CL_CLOSE       = 0x0000200C;
static const int K_BILLING_CL_ERROR       = 0x0000200D;
static const int K_BILLING_CL_DONE        = 0x0000200E;
static const int K_BILLING_CL_FAULT       = 0x0000200F;
static const int K_BILLING_CL_REQUEST_1   = 0x00002010;
static const int K_BILLING_CL_REQUEST_2   = 0x00002011;
static const int K_RPC_SRV_OPEN           = 0x00002012;
static const int K_RPC_SRV_CLOSE          = 0x00002013;
static const int K_RPC_SRV_ERROR          = 0x00002014;
static const int K_RPC_SRV_LISTEN         = 0x00002015;
static const int K_RPC_SRV_NOT_LISTEN     = 0x00002016;

static const int M_STARTED_STATE          = 0x00003000;
static const int M_STOPED_STATE           = 0x00003001;
static const int M_STOPING_STATE          = 0x00003002;
static const int M_STARTING_STATE         = 0x00003003;
static const int M_ERROR_STATE            = 0x00003004;
static const int M_NOT_FOUND_TABLE_SRC_SM = 0x00003005;
static const int M_NOT_FOUND_TABLE_SRC_DM = 0x00003006;
static const int M_NOT_FOUND_TABLE_DST_SM = 0x00003007;
static const int M_NOT_FOUND_TABLE_DST_DM = 0x00003008;

static const int SM_STARTED_STATE         = 0x00004000;
static const int SM_STOPED_STATE          = 0x00004001;
static const int SM_STOPING_STATE         = 0x00004002;
static const int SM_STARTING_STATE        = 0x00004003;
static const int SM_ERROR_STATE           = 0x00004004;
static const int SM_ERROR_EXEC_SQL_QUERY  = 0x00004005;
static const int SM_LISTEN_SRC_SERVER     = 0x00004006;
static const int SM_NOT_LISTEN_SRC_SERVER = 0x00004007;
static const int SM_OPEN_SRC_SESSION      = 0x00004008;
static const int SM_OPEN_DEST_SESSION     = 0x00004009;
static const int SM_CLOSE_SRC_SESSION     = 0x0000400A;
static const int SM_CLOSE_DEST_SESSION    = 0x0000400B;
static const int SM_RESTART_DEST_SESS     = 0x0000400C;
static const int SM_NOT_RESTART_DEST_SESS = 0x0000400D;
static const int SM_ERROR_SRC_SESSION     = 0x0000400E;
static const int SM_ERROR_DEST_SESSION    = 0x0000400F;
static const int SM_SEND_DEST_SESSION     = 0x00004010;
static const int SM_NOT_SEND_DEST_SESSION = 0x00004011;
static const int SM_SEND_SRC_SESSION      = 0x00004012;
static const int SM_NOT_SEND_SRC_SESSION  = 0x00004013;
static const int SM_RECEIVE_SRC_SESSION   = 0x00004014;
static const int SM_RECEIVE_DEST_SESSION  = 0x00004015;
static const int SM_INIT_SRC_SESSION      = 0x00004016;
static const int SM_INIT_DEST_SESSION     = 0x00004017;
static const int SM_INACT_SRC_SESSION     = 0x00004018;
static const int SM_INACT_DEST_SESSION    = 0x00004019;
static const int SM_CREATE_SRC_SESSION    = 0x00004020;
static const int SM_CREATE_DEST_SESSION   = 0x00004021;
static const int SM_DESTROY_SRC_SESSION   = 0x00004022;
static const int SM_DESTROY_DEST_SESSION  = 0x00004023;

static const int CONF_NOT_FOUND_KEY_1     = 0x00000001;
static const int CONF_NOT_FOUND_KEY_1_2   = 0x00000002;
static const int ERROR_EXEC_SQL_QUERY     = 0x00000003;

} // namespace logmsgcodes

} // namespace smsrouter

#endif // LOG_MESSAGE_CODES_H
